<?php

class IkebanaMakeAction extends SzAbstractAction
{
    protected $paramTypes = array(
        SzAbstractAction::TYPE_INT,
        SzAbstractAction::TYPE_INT,
        SzAbstractAction::TYPE_INT,
        SzAbstractAction::TYPE_INT,
        SzAbstractAction::TYPE_INT,
        SzAbstractAction::TYPE_INT
    );

    /**
     * 制作插花
     *
     * @param int $userId
     * @param string $vaseId
     * @param int $type
     * @param int $count
     * @param int $combinationId
     * @param int $reqTime
     * @return SzResponse
     */
    public function execute($userId, $vaseId, $type, $count, $combinationId, $reqTime)
    {
//        if(!GameService::get()->verifySysUnlock($userId, GameConst::FUNC_FLOWER_MAKE)){
//            return $this->buildResponse(false);
//        }

        GameService::get()->validateMultiRequestTimeDelta($userId, $reqTime);

        return $this->buildResponse(array(
            IkebanaService::get()->make($userId, $vaseId, $type, $count, $combinationId, $reqTime)
        ));
    }
}